<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="projectTemplate.xhtml">
    <ui:define name="top"><h1>Reports</h1></ui:define>

    <ui:define name="content">
    
    <h:form>        

        <p:panel header="Search Reports">
        <h:panelGrid columns="2">    
        <h:outputLabel for="databaseparameterlabel" value="Database Parameter: " styleClass="requiredLbl">
            <p:selectOneMenu value="#{reportsBean.DBParam}">  
                <f:selectItem itemLabel="Select One" itemValue="0" />  
                <f:selectItem itemLabel="Shared Pool" itemValue="1" />  
                <f:selectItem itemLabel="Buffer Cache" itemValue="2" />  
                <f:selectItem itemLabel="Log Buffer" itemValue="3" />  
                <f:selectItem itemLabel="Sorting" itemValue="4" />  
                <f:selectItem itemLabel="Rollback" itemValue="5" />  
            </p:selectOneMenu>

        </h:outputLabel>
        <br/>  
          
        <h:panelGrid id="display" columns="4">  
        <h:outputLabel for="daterangelabel" value="Date Range: " styleClass="requiredLbl">
            <p:calendar value="#{reportsBean.startDate}" mode="popup" pattern="dd/MM/yyyy"/>
                        
            <h:outputLabel for="tolabel" value=" To " styleClass="requiredLbl"/>
            <p:calendar value="#{reportsBean.endDate}" mode="popup" pattern="dd/MM/yyyy"/>
            
            <p:commandButton id="goButton" value="  Go  " action="#{reportsBean.genSvcRpt()}" ajax="false"/>
        </h:outputLabel>
        </h:panelGrid>  
        <br/>
        
        <p:growl id="growl" showDetail="true" life="3000" />
        
        </h:panelGrid>
        </p:panel>
        
    </h:form>    
    </ui:define>
    </ui:composition>   
</html>
